<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%> 
<div class="pageContent">
	<form method="post" action="article/update" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<input type="hidden" name="articleId" value="${article.articleId}">
		<div class="pageFormContent" layoutH="57">
			<dl>
				<dt>文章标题：</dt>
				<dd><input class="required" name="title" type="text" size="70" value="${article.title }" /></dd>
			</dl>
			<dl class="nowrap">
				<dt>标签：</dt>
				<dd><input class="required" name="tag" type="text" size="70" value="${article.tag }" /></dd>
			</dl>
			<dl class="nowrap">
				<dt>正文：</dt>
					<select  name="province" class="combox">
		             <c:forEach items="${types}" var="type">
		             <option value="${type.typeId}" ${type.typeId==article.articleType.typeId?'selected="selected"':''}>${type.typeName}</option>
                     </c:forEach>
	                </select>
	            
			</dl>
            
            <dl class="nowrap">
				<dt>正文：</dt>
				<dd><textarea cols="70" rows="15" name="content" class="editor" tools="mfull" > ${article.content }</textarea></dd>
			</dl>
           
			<div class="divider"></div>
			<dl>
				<dt>创建时间：</dt>
				<dd><input readonly="readonly" name="createTime" type="text" size="30"  class="date" format="yyyy-MM-dd HH:mm:ss"/></dd>
			</dl>
			<dl>
				<dt>更新时间：</dt>
				<dd><input readonly="readonly" name="updateTime" type="text" size="30" class="date" format="yyyy-MM-dd HH:mm:ss" /></dd>
			</dl>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
</div>